Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: [2.5] Add try-catch and return CStatus for NewCollection (#39279) #39303

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

congqixia
Copy link
Contributor

Cherry pick from master
pr: #39279
Related to #28795

@sre-ci-robot sre-ci-robot added the size/M Denotes a PR that changes 30-99 lines. label Jan 15, 2025
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Jan 15, 2025
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 68.75000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 81.04%. Comparing base (2439278) to head (1c4e0fb).
Report is 7 commits behind head on 2.5.

Files with missing lines Patch % Lines
internal/core/src/segcore/collection_c.cpp 33.33% 12 Missing ⚠️
internal/util/segcore/collection.go 70.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              2.5   #39303      +/-   ##
==========================================
+ Coverage   81.02%   81.04%   +0.01%     
==========================================
  Files        1400     1401       +1     
  Lines      197477   197222     -255     
==========================================
- Hits       160013   159831     -182     
+ Misses      31840    31771      -69     
+ Partials     5624     5620       -4     
Components Coverage Δ
Client 78.26% <ø> (ø)
Core 69.40% <33.33%> (-0.26%) ⬇️
Go 83.02% <90.00%> (+0.03%) ⬆️
Files with missing lines Coverage Δ
internal/querynodev2/segments/collection.go 92.18% <100.00%> (+2.29%) ⬆️
internal/querynodev2/services.go 86.61% <100.00%> (-0.16%) ⬇️
internal/util/segcore/collection.go 76.92% <70.00%> (-4.33%) ⬇️
internal/core/src/segcore/collection_c.cpp 50.00% <33.33%> (-18.75%) ⬇️

... and 51 files with indirect coverage changes

@mergify mergify bot added the ci-passed label Jan 15, 2025
Related to previous pr milvus-io#39279

When NewCollection returns nil, the error shall be returned and handled
by caller

Signed-off-by: Congqi Xia <[email protected]>
@sre-ci-robot sre-ci-robot added size/L Denotes a PR that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Jan 15, 2025
@mergify mergify bot added ci-passed and removed ci-passed labels Jan 15, 2025
@tedxu
Copy link
Contributor

tedxu commented Jan 16, 2025

/lgtm

@sre-ci-robot sre-ci-robot merged commit 21df11b into milvus-io:2.5 Jan 16, 2025
18 of 20 checks passed
@congqixia congqixia deleted the cp25/39279 branch January 16, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants